{extend name="extra@admin/content"}

{block name="content"}
<form onsubmit="return false;" action="__SELF__" data-auto="true" method="post" class='form-horizontal' style='padding-top:20px'>

    <div class="form-group">
        <label class="col-sm-2 control-label">SiteName <span class="nowrap">(网站名称)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="site_name" required="required" title="请输入网站名称" placeholder="请输入网站名称" value="{:sysconf('site_name')}" class="layui-input">
            <p class="help-block">网站名称，显示在浏览器标签上。调用方法：{literal}{:sysconf('site_name')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">Copyright <span class="nowrap">(版权信息)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="site_copy" required="required" title="请输入版权信息" placeholder="请输入版权信息" value="{:sysconf('site_copy')}" class="layui-input">
            <p class="help-block">程序的版权信息设置，在后台登录页面显示。调用方法：{literal}{:sysconf('site_copy')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">AppName <span class="nowrap">(程序名称)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="app_name" required="required" title="请输入程序名称" placeholder="请输入程序名称" value="{:sysconf('app_name')}" class="layui-input">
            <p class="help-block">当前程序名称，在后台主标题上显示。调用方法：{literal}{:sysconf('app_name')}{/literal}</p>
        </div>
    </div>


    <div class="form-group">
        <label class="col-sm-2 control-label">AppVersion <span class="nowrap">(程序版本)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="app_version" required="required" title="请输入程序版本" placeholder="请输入程序版本" value="{:sysconf('app_version')}" class="layui-input">
            <p class="help-block">当前程序版本号，在后台主标题上标显示。调用方法：{literal}{:sysconf('app_version')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">Baidu <span class="nowrap">(百度统计)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="tongji_baidu_key" maxlength="32" pattern="^[0-9a-z]{32}$" title="请输入32位百度统计应用ID" placeholder="请输入32位百度统计应用ID" value="{:sysconf('tongji_baidu_key')}" class="layui-input">
            <p class="help-block">百度统计应用ID，可以在<a target="_blank" href="https://tongji.baidu.com">百度网站统计</a>申请并获取。调用方法：{literal}{:sysconf('tongji_baidu_key')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">Beian <span class="nowrap">(网站备案)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="site_beian" required="required" title="请输入网站备案号" placeholder="请输入网站备案号" value="{:sysconf('site_beian')}" class="layui-input">
            <p class="help-block">网站备案，显示网站底部。调用方法：{literal}{:sysconf('site_beian')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">Stitle <span class="nowrap">(首页标题)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="site_stitle"  title="请输入网站首页标题" placeholder="请输入网站首页标题" value="{:sysconf('site_stitle')}" class="layui-input">
            <p class="help-block">首页标题，网站SEO设置。调用方法：{literal}{:sysconf('site_stitle')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">Skeywords <span class="nowrap">(首页关键词)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="site_skeywords"  title="请输入网站首页关键词" placeholder="请输入网站首页关键词" value="{:sysconf('site_skeywords')}" class="layui-input">
            <p class="help-block">首页关键词，网站SEO设置。调用方法：{literal}{:sysconf('site_skeywords')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">Sdesc <span class="nowrap">(首页描述)</span></label>
        <div class='col-sm-8'>
            <input type="text" name="site_sdesc"  title="请输入网站首页描述" placeholder="请输入网站首页描述" value="{:sysconf('site_sdesc')}" class="layui-input">
            <p class="help-block">首页描述，网站SEO设置。调用方法：{literal}{:sysconf('site_sdesc')}{/literal}</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">BrowserIcon <span class="nowrap">(浏览器图标)</span></label>
        <div class='col-sm-8'>
            <img data-tips-image style="height:auto;max-height:32px;min-width:32px" src="{:sysconf('browser_icon')}"/>
            <input type="hidden" name="browser_icon" onchange="$(this).prev('img').attr('src', this.value)"
                   value="{:sysconf('browser_icon')}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-type="ico,png" data-field="browser_icon">上传图片</a>
            <p>建议上传ICO图标的尺寸为128x128px，此图标用于网站标题前，ICON在线制作。调用方法：{literal}{:sysconf('browser_icon')}{/literal}</p>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="col-sm-4 col-sm-offset-2">
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存配置</button>
        </div>
    </div>

</form>

{/block}